package com.qiyu.model.response.backend;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 信息动态 管理 响应体
 *
 * @Author: tiancheng
 * @date: 2020/8/4 10:55
 */
@Data
@ApiModel("信息动态 管理 响应体")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class InformationDynamicResponse {
    
    @ApiModelProperty(value = "产品id")
    private Long id;
    
    @ApiModelProperty("标题")
    private String title;
    
    @ApiModelProperty("略缩图地址")
    private String thumbnail;
    
    @ApiModelProperty("排序")
    private Integer sort;
    
    @ApiModelProperty("所属二级菜单id")
    private Long secondMenuId;
    
    @ApiModelProperty("所属二级菜单名称")
    private String secondMenuName;
    
    @ApiModelProperty("是否上线")
    private Boolean online;
    
    @ApiModelProperty("文章日期")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date articleTime;
    
    @ApiModelProperty("创建时期")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date createTime;
    
    @ApiModelProperty("更新日期")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date updateTime;
    
    @ApiModelProperty("浏览数")
    private Integer browseNum;
    
    @ApiModelProperty("内容")
    private String content;
}
